package com.osdp.uc.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrganizationDTO implements Serializable {

    @ApiModelProperty("机构id")
    private String id;

    /**父节点ID*/
    @ApiModelProperty(value = "父节点ID")
    private String parentId;

    /**机构编码*/
    @ApiModelProperty(value = "部门编码")
    private String orgCode;

    @ApiModelProperty(value = "部门名称")
    private String orgName;

    @ApiModelProperty(value = "手机号")
    private String phone;
    /**传真*/
    @ApiModelProperty(value = "传真")
    private String fax;
    /**地址*/
    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "Email")
    private String email;

    /**1表示是叶子  0表示不是叶子*/
    private Short isLeaf;

    /**体系ID*/
    @ApiModelProperty(value = "体系ID")
    private String orgTypeId;

    /** 租户ID  */
    @ApiModelProperty("租户ID")
    private String tenantId;


    private List<OrganizationDTO> children = new ArrayList<OrganizationDTO>();
}
